The following form, when the Submit button is selected, will return a Web page which displays the user's input (this is the function of the script appb.pl). The markup below is followed by the working form.
<FORM method="post" action="http://www.cwru.edu/cgi-bin/tutorial/appb.pl"> <P> Your name:<INPUT type=text name="name"> <BR> Your age: <INPUT type=text name="age" size=3> <BR> Your Social Security Number: <INPUT type=text name="ssn" size=9 maxlength=11> <BR> Your password: <INPUT type=password name="pwd" size=15 maxlength=15> </P> <P> You are <INPUT type=radio name="gender" value="M">Male <INPUT type=radio name="gender" value="F">Female </P> <P> Your favorite computer operating system:<BR> <INPUT type=radio name="fav_os" value="mac">Macintosh<BR> <INPUT type=radio name="fav_os" value="dos">DOS<BR> <INPUT type=radio name="fav_os" value="win">Windows<BR> <INPUT type=radio name="fav_os" value="win95">Windows95<BR> <INPUT type=radio name="fav_os" value="os2">OS/2<BR> <INPUT type=radio name="fav_os" value="unix">UNIX<BR> </P> <P> What operating systems have you used?<BR> <INPUT type=checkbox name="used" value="mac">Macintosh<BR> <INPUT type=checkbox name="used" value="dos">DOS<BR> <INPUT type=checkbox name="used" value="win">Windows<BR> <INPUT type=checkbox name="used" value="win95">Windows95<BR> <INPUT type=checkbox name="used" value="os2">OS/2<BR> <INPUT type=checkbox name="used" value="unix">UNIX<BR> </P> <P> Are you breathing at the moment? <INPUT type=radio name="breathing" value="Y" checked>Yes <INPUT type=radio name="breathing" value="N">No </P> <P> How are you reaching this page? <SELECT name="access"> <OPTION>No response <OPTION>Compuserve <OPTION>America On-Line <OPTION>Independent ISP <OPTION>Straight Internet connection <OPTION>Other </SELECT> </P> <P> With which flavors of HTML are you familiar? <SELECT multiple name="html"> <OPTION selected>Basic HTML 2.0 <OPTION>Intermediate HTML 2.0 (forms, etc.) <OPTION>Netscape HTML <OPTION>Microsoft HTML <OPTION>ex-HTML 3.0 </SELECT> </P> <P> Any other comments?<BR> <TEXTAREA wrap name="comments" rows=5 cols=65></TEXTAREA> </P> <P> <INPUT type=submit value="That's All!"> <INPUT type=reset> </P> </FORM>
Next -- Appendix C:
References
Previous --
Appendix A: Tag Summary
Table of Contents
Glossary
Index